﻿package net.wangit.framework.exception;
/**
 * 配置异常
 * 
 * @author watson
 * Feb 22, 2010
 */
@SuppressWarnings("serial")
public class ConfigurationException extends NestableRuntimeException {
	private String prop;

	public ConfigurationException(String s) {
		super(s);
	}

	public ConfigurationException(String path, String prop) {
		super((new StringBuilder("configuration error: please check ")).append(
				prop).append(" in ").append(path).toString());
		this.prop = prop;
	}

	public ConfigurationException(String s, Throwable cause) {
		super(s, cause);
	}

	public String getProp() {
		return prop;
	}
}
